<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增文件资料')" />
    <th:block th:include="include :: datetimepicker-css" />
    <!-- html主体-->
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-filelogs-add">
        <div class="form-group">
            <label class="col-sm-3 control-label">活动编号：</label>
            <div class="col-sm-8">
                <input name="activityId" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">资料类型：</label>
            <div class="col-sm-8">
                <select name="extType" class="form-control" th:with="type=${@dict.getType('degree')}">
                    <option value="">请选择</option>
                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
                            th:value="${dict.dictValue}"></option>
                </select>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">资料编号：</label>
            <div class="col-sm-8">
                <input name="fileId" class="form-control" type="text">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">活动名称：</label>
            <div class="col-sm-8">
                <input name="activityName" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">文件数量：</label>
            <div class="col-sm-8">
                <input name="fileNum" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">文件大小：</label>
            <div class="col-sm-8">
                <input name="fileSize" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">创建人：</label>
            <div class="col-sm-8">
                <input name="createBy" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">创建时间：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    <input name="createTime" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">更新者：</label>
            <div class="col-sm-8">
                <input name="updateBy" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">更新时间：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="updateTime" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
                </div>
            </div>
        </div>

    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<!-- JS模块 -->
<script type="text/javascript">
    var prefix = ctx + "vtsp/filelogs"
    $("#form-filelogs-add").validate(
        {
            focusCleanup: true
        });
    //提交添加的数据
    function submitHandler()
    {
        if ($.validate.form())
        {
            $.operate.save(prefix + "/add", $('#form-filelogs-add').serialize());
        }
    }

    //实现时间的选择
    $("input[name='createTime']").datetimepicker(
        {
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    $("input[name='updateTime']").datetimepicker(
        {
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
</script>
</body>
</html>
